﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Sql.DSProblem>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title><%=Model.pid%> - <%=Model.title%></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body runat="server">
<div style="padding-top:8px;padding-bottom:8px;background-color: #F1F2F4; text-align: center; border-bottom-style:solid; border-bottom-width:1px; border-bottom-color:#CCC">
	  <p style="font-weight:bold;font-size:15pt"><%=HttpUtility.HtmlEncode(Model.title)%></p>
        <table width="300" style="padding-left:15px;color:#666;font-size:9pt;margin:auto">
          <tr>
            <td style="text-align:left">Time Limit: <%=Model.timeLimit%> MS</td>
            <td style="text-align:left">Memory Limit: <%=Model.memoryLimit%> KB</td>
          </tr>
          <tr>
            <td style="text-align:left">Total Submissions: <%=((Sql.DSProblemStatistics)ViewData["ps"]).submit%></td>
            <td style="text-align:left">Accepted: <%=((Sql.DSProblemStatistics)ViewData["ps"]).accept%></td>
          </tr>
        </table>
</div>
<div style="padding-left:8px; padding-bottom:8px; padding-right:5px; font-family:verdana,sans-serif">
    <br /><p style="font-weight:bold; font-size:11pt">Description</p><br />
    <div style="font-size:10pt"><%=Web.Controllers.Convertor.TrimHtmlEnd(Model.description)%><br />
    </div>
    <br /><p style="font-weight:bold; font-size:11pt">Input</p><br />
	<div style="font-size:10pt"><%=Web.Controllers.Convertor.TrimHtmlEnd(Model.input)%></div>
    <br /><p style="font-weight:bold; font-size:11pt">Output</p><br />
    <div style="font-size:10pt"><%=Web.Controllers.Convertor.TrimHtmlEnd(Model.output)%></div>
    <br /><p style="font-weight:bold; font-size:11pt">Sample Input</p><br />
    <div style="font-size:10pt"><%=Core.functional.HtmlEncode(Model.sampleInput)%></div>
    <br /><p style="font-weight:bold; font-size:11pt">Sample Output</p><br />
    <div style="font-size:10pt"><%=Core.functional.HtmlEncode(Model.sampleOutput)%></div>
    <%if (!string.IsNullOrEmpty(Model.hint))
      {%>
    <br /><p style="font-weight:bold; font-size:11pt">Hint</p><br />
	<div style="font-size:10pt"><%=Web.Controllers.Convertor.TrimHtmlEnd(Model.hint)%></div>
	<%}
        if (!string.IsNullOrEmpty(Model.source))
      {%>
    <br /><p style="font-weight:bold; font-size:11pt">Source</p><br />
	<div style="font-size:10pt"><%=Server.HtmlEncode(Model.source)%></div>
	<%}%>
</div>
</body>
</html>
